#ifndef LINETEST_H_ 
#define LINETEST_H_

#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "../common/primitive/Line.h"
#include "../common/primitive/Segment.h"
#include "../common/basic/Coordinate.h"

using namespace std;
using namespace common;

class LineTest : public CPPUNIT_NS :: TestFixture
{
	CPPUNIT_TEST_SUITE (LineTest);

#ifndef TEST_VIEW
	CPPUNIT_TEST (testFunction);
#endif
#ifdef TEST_VIEW
	CPPUNIT_TEST (testFunction2);
	CPPUNIT_TEST (testFunction4);
#endif

	CPPUNIT_TEST_SUITE_END ();

	public:
		void setUp (void);
		void tearDown (void);

	protected:

		void testFunction (void);
		void testFunction2 (void);
		void testFunction4 (void);

	private:
		Point* p1;
		Point* p2;
		Point* p3;
		Point* p4;
		Line* l1;
		Line* l2;
		Segment* s1;
		Coordinate* c1;
};

#endif /* LINETEST_H_ */
